package cn.com.captureNetPacket;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;
@Slf4j
@Component
public class StartApplication implements ApplicationRunner {
	
 
	@Autowired
	public CaptureNetPacketService captureNetPacketService;
	 
	@Override
	public void run(ApplicationArguments arg0) throws Exception {
//		margeThread.margeStart();
//		test.testaaa();
		startService();
	}
	
	
     private void  startService() throws Exception{
    	 captureNetPacketService.startinit();
     }
}
